//
//  WCG_N_ProviderViewController.m
//  Project_B
//
//  Created by apple on 15/11/26.
//  Copyright © 2015年 Atom_Wang. All rights reserved.
//

#import "WCG_N_ProviderViewController.h" // 第一页表视图

#import "WCG_N_TableViewCell.h" // cell
#import "GXProviderDataModel.h" // model
#import "WCG_N_ProviderDetailViewController.h" // 第二页
#import "GXiaNetHandle.h"       // 网路请求
//#import "MBProgressHUD.h"       // chrysanthemum

/** 造物主cell的重用标志 **/
static NSString *providerCellId = @"providerCell";

@interface WCG_N_ProviderViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, retain) NSMutableArray *providerDataArr;

@end

@implementation WCG_N_ProviderViewController

- (void)viewWillAppear:(BOOL)animated{
    
    [super viewWillAppear:animated];
    [self.navigationController.navigationBar setHidden:YES];
    self.automaticallyAdjustsScrollViewInsets = NO;
    [self.tabBarController.tabBar setHidden:NO];
    
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self.view setBackgroundColor:[UIColor whiteColor]];
    
    // `数据数组初始化
    self.providerDataArr = [NSMutableArray array];
    // `创建tableView
    [self createTableViewWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height - 49)];
    self.tableView.dataSource = self;
    self.tableView.delegate  = self;
    // `注册cell
    [self.tableView registerClass:[WCG_N_TableViewCell class] forCellReuseIdentifier:@"providerCell"];
    
    // 请求数据
    
 
}

#pragma mark - 数据请求




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
